<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>

<body>
<?php foreach ($info_AR as $row)
{?>
<table width="538" border="0" align="right">
        <tr>
          <td width="602"><form id="form1" name="form1" method="post" action="<?php echo base_url();?>TravelAgencyController/updateInfoAgency/<?php echo $id_agency;?>/<?php echo $id_user;?>/<?php echo $username;?>/22">
            <table width="100%" border="0">
              <tr>
                <td width="30%"><div align="left"><strong>Nombre Empresa</strong></div></td>
                <td width="70%"><label><?php echo $row['nameCompany']; ?> </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Nombre Agencia</strong></div></td>
                <td><label>
				<?php echo $row['nameTravelagency']; ?> </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>RIF</strong></div></td>
                <td><label>
                 <?php echo $row['rif']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>NIT</strong></div></td>
                <td><label>
                  <?php echo $row['nit']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>RTN</strong></div></td>
                <td><label>
                  <?php echo $row['rtn']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>VT</strong></div></td>
                <td><label>
                 <?php echo $row['vt']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Se ubica en:</strong></div></td>
                <td><label>
                  <?php echo $row['namePlace']?></label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Direccion Comercial</strong></div></td>
                <td><label>
           <?php echo $row['comercialAddress']; ?>
           </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Ubicacion Referencial</strong></div></td>
                <td><?php echo $row['referenceAddress']; ?></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Pagina WEB</strong></div></td>
                <td><label>
                  <?php echo $row['pagWeb']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Email</strong></div></td>
                <td><label>
				<?php echo $row['email']; ?>
                  </label></td>
              </tr>
              <tr>
                <td><strong>Teléfonos:</strong></td>
                <td><table width="100%" border="0">
                  <?php foreach ($tlf_agency as $aux)
				  {
					   if ($aux['number'] != NULL)
					   {
					  ?>
						<tr>
						<td width="7%"><?php echo $aux['number']; ?></td>
						<td width="93%">Tipo: <?php echo $aux['type']; ?></td>
					   </tr>
					   <?php 
					   }//cierro el if
				   } //cierro el foreach?>
                </table></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Logo</strong></div></td>
                <td><div align="left"><img src="http://127.0.0.1/CodeIgniter/img/logoAgencies/<?php echo $row ['logo']; ?>" /></div></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td colspan="2" bgcolor="#FF6600"><div align="center"><strong> Representante de Agencia de Viaje</strong></div></td>
              </tr>
              <tr>
                <td colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td><div align="left"><strong>Primer Nombre</strong></div></td>
                <td><label>
				<?php echo $row['nameR']; ?>
               </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Segundo Nombre</strong></div></td>
                <td><label>
 				<?php echo $row['name2R']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Primer Apellido</strong></div></td>
                <td><label>
                  <?php echo $row['lastnameR']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Segundo Apellido</strong></div></td>
                <td><label>
				<?php echo $row['lastname2R']; ?>
                </label></td>
              </tr>
              <tr>
                <td><div align="left"><strong>Email</strong></div></td>
                <td><label>
                 <?php echo $row['emailR']; ?>
                 </label></td>
              </tr>
              <tr>
                <td height="24"><div align="left"><strong>Teléfono(s):</strong></div></td>
                <td><label> </label>
                    <label></label>
                    <table width="100%" border="0">
                    <?php foreach ($tlf_representative as $row)
					  {
					  if ($row['number'] != NULL)
					   {
					  ?>
                       <tr>
                        <td width="9%"><?php echo $row['number']; ?></td>
                        <td width="91%">Tipo: <?php echo $row['type']; ?></td>
                      </tr>
                        <?php 
						 }//cierro el if
						} //cierro el foreach?>
                    </table>
                <label></label></td>
              </tr>
            </table>
                    </form>          </td>
        </tr>
      </table>
<?php } //cierro el foreach ?>
</body>
</html>
